package com.neuedu.model;

import java.util.Date;

import com.alibaba.fastjson.annotation.JSONField;

public class Comment {
	private int commentNo;
	private int foodNo;
	private int commentNum;
	private String commContent;
	private int userNo;
	@JSONField(format="yyyy/MM/dd")
	private Date commentTime;
	private String state;
	
	
	private Food food;
	private UserMessage userMessage; // 用户
	
	
	public Food getFood() {
		return food;
	}

	public void setFood(Food food) {
		this.food = food;
	}

	
	public UserMessage getUserMessage() {
		return userMessage;
	}

	public void setUserMessage(UserMessage userMessage) {
		this.userMessage = userMessage;
	}

	
	
	
	public Comment() {
		super();
	}

	public Comment(int commentNo, int foodNo, int commentNum, String commContent, int userNo, Date commentTime,
			String state) {
		super();
		this.commentNo = commentNo;
		this.foodNo = foodNo;
		this.commentNum = commentNum;
		this.commContent = commContent;
		this.userNo = userNo;
		this.commentTime = commentTime;
		this.state = state;
	}

	public int getCommentNo() {
		return commentNo;
	}

	public void setCommentNo(int commentNo) {
		this.commentNo = commentNo;
	}

	public int getFoodNo() {
		return foodNo;
	}

	public void setFoodNo(int foodNo) {
		this.foodNo = foodNo;
	}

	public int getCommentNum() {
		return commentNum;
	}

	public void setCommentNum(int commentNum) {
		this.commentNum = commentNum;
	}

	public String getCommContent() {
		return commContent;
	}

	public void setCommContent(String commContent) {
		this.commContent = commContent;
	}

	public int getUserNo() {
		return userNo;
	}

	public void setUserNo(int userNo) {
		this.userNo = userNo;
	}

	public Date getCommentTime() {
		return commentTime;
	}

	public void setCommentTime(Date commentTime) {
		this.commentTime = commentTime;
	}

	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}
	
	
}
